"""
@Project: pythonPro1
@Name: _2addNoOver.py
@Author: linxin_liu
@Date: 2022/9/26 10:05
"""


def add(x, y):
    return x + y


condition = -1
while condition < 0:
    str1 = input('请输入第一个数字:')
    if str1.isnumeric():
        num1 = float(str1)
        str2 = input('请输入第二个数字:')
        if str2.isnumeric():
            num2 = float(str2)
            print('{}+{}={}'.format(num1, num2, add(num1, num2)))
            condition = condition + 1
        else:
            continue
    else:
        continue
